{
GtkWidget *widget;
GdkSurface *surface;
- GdkRectangle rect;
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component));
if (widget == NULL)
if (surface == NULL)
return;
- gdk_surface_get_frame_extents (surface, &rect);
-
*x = 0;
*y = 0;
- *width = rect.width;
- *height = rect.height;
+ *width = gdk_surface_get_width (surface);
+ *height = gdk_surface_get_height (surface);
if (!gtk_widget_is_drawable (widget))
{
*x = G_MININT;
{
GtkWidget *widget;
GdkSurface *surface;
- GdkRectangle rect;
widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component));
if (widget == NULL)
if (surface == NULL)
return;
- gdk_surface_get_frame_extents (surface, &rect);
-
- *width = rect.width;
- *height = rect.height;
+ *width = gdk_surface_get_width (surface);
+ *height = gdk_surface_get_height (surface);
}
void